﻿using System.Linq;
using Core.Contract.DataContract;
using Data.DAO;
using www.Models;

namespace Data.BO
{
    public class LinkRefBO//:BaseBO<LinkDAO,RelaxLink>
    {
        #region Value
        private readonly LinkRefDAO _linkDao = new LinkRefDAO();
        #endregion 

        #region Ham lay du Lieu

        public  IQueryable<RelaxLinkDataContract> GetLinkDataContracts()
        {
            return _linkDao.GetLinkDataContracts();
        }
        #endregion 
    
        #region Ham Add

        public void Add(LINK_REF link)
        {
            _linkDao.Add(link);
        }
        #endregion 
    
        #region Ham Update

        public void Update(LINK_REF link)
        {
            _linkDao.Update(link);
        }
        #endregion 

        #region Ham Delete

        public void Delete(int iId)
        {
            _linkDao.Delete(iId);
        }
        #endregion
    }
}
